<?php # $this->load->view('layouts/_flash'); ?>

<div class="ui-corner-all contentContainer" style="background-color: #fff;">

<div style="position: relative;">

<div style="float: left;">
<div class="ui-corner-top side_menu" style="width: 700px;">Add New User</div>
<div style="border:1px  solid #286bcc;">
<div>&nbsp;</div>
<div>
<?echo validation_errors();?>
<?php 
echo form_open('users/add');
?>

<fieldset>
    <div style="position: relative;">
		<table>
			<?if(!empty($all_users)):?>
					<tr><th style="width:100px;">Name</th>
						<th style="width:100px;">Usertype</th>
						<th style="width:100px;">Status</th>
						<th style="width:100px;"></th>
						<th style="width:100px;"></th>
						<th style="width:100px;"></th>
					</tr>
				<?foreach ($all_users as $users):?>
					<tr>
						<td><?=$users->username;?></td>
						<td><?=$users->userType;?></td>
						<td><?=$users->userStatus;?></td>
						<td><a href="<?=site_url('users/destroy').'/'.$users->id;?>">Destroy</a></td>
						<td><a href="<?=site_url('users/update').'/'.$users->id;?>">Update</a></td>
						<td><a href="<?=site_url('users/changepass').'/'.$users->id;?>">change Pass</a></td>
					</tr>
				<?endforeach;?>
			<?else:?>
			<?endif;?>
		</table>
	</div>
</fieldset>

<?php
echo form_close();
?>

</div>
<div class="clearfloat"></div>
</div>
<div>&nbsp;</div>
</div>
</div>
<div class="clearfloat"></div>
</div>

</div>